package com.wgchao.authprovider.common;

import module.common.dto.SysUserDTO;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @author: wgchao
 * @createTime: 2019/8/9 1:55 PM
 * @Description: 测试
 */
@RestController
@RefreshScope
public class TestController {

    @Value("${server.port}")
    String port;
//    @Autowired
//    private UserService userService;

    @GetMapping("/hello")
    public String hello(){
     //   userService.save(new User(null, "tom"));
        return " hello-"+port;
    }
}
